<form action="index.php" method="post" name="adminForm">
	<table class="adminlist">
		<thead>	
			<tr>
				<th width="5%">
					<input type="checkbox" name="toggle" value=""  onclick="checkAll(<?php echo $this->TOTAL_ROW;?>);" />
				</th>
				<th class="title" width="10%">
					Serial Code
				</th>					
				<th class="title" width="10%" >
					Pond Name
				</th>			
				<th class="title" width="10%">
					Fish Class Name
				</th>
				<th class="title" width="10%">
					Fish Class Content
				</th>
				<th class="title" width="10%">
					Fish Class Image
				</th>
				<th class="title" width="10%">
					Customer Name
				</th>
				<th class="title" width="10%">
					Feed Date
				</th>
				<th class="title" width="10%">
					Sale Date
				</th>
				<th class="title" width="10%">
					Expired Date
				</th>
				<th class="title" width="5%">
					Status
				</th>
			</tr>
		</thead>
		<tfoot>
			<tr>
				<td colspan="14">
					<?php echo $this->LIST_FOOTER_PAV;?>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php if ($this->TOTAL_ROW) {
					$i = 0;
					foreach ($this->dbrow as $key=>$value) {
						$checked = JHTML::_('grid.checkedout', $value, $i );
					 	$css_row = $i%2 ? 'row0':'row1'; 
			?>
						<tr class="<?=$css_row?>">
							<td align="center"><?php echo $checked;?></td>
							<td align="center">
								<?php echo $value->serial_code;?>
							</td>
							<td align="center">
								<?php echo $value->pond_name;?>
							</td>
							<td align="center">
								<?php echo $value->fishclass_name;?>
							</td>
							<td align="center">
								<?php echo $value->fishclass_content;?>
							</td>
							<td align="center">
								<a href="<?php echo 'http://'.$value->fishclass_image?>" class="modal"><img alt="" src="<?php echo 'http://'.$value->fishclass_image?>" style="width:70px;"></a>
							</td>
							<td align="center">
								<?php echo $value->customer_name;?>
							</td>
							<td align="center">
								<?php echo (empty($value->feed_date))?'':date('d-m-Y', strtotime($value->feed_date));?>
							</td>
							<td align="center">
								<?php echo (empty($value->sale_date))?'':date('d-m-Y', strtotime($value->sale_date));?>
							</td>
							<td align="center">
								<?php echo (empty($value->expired_date))?'':date('d-m-Y', strtotime($value->expired_date));?>
							</td>
							<td align="center">
								<?php echo $value->status;?>
							</td>	
						</tr>
			<?php
						$i++;
					}
				} 
			?>	
		</tbody>
	</table>
			
	<input type="hidden" name="option" value="com_manager" />
	<input type="hidden" name="c" value="product" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->FORM_ORDER;?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->FORM_ORDER_DIR;?>" />
	<?php echo $this->FORM_TOKEN;?>
</form>
